from http import HTTPClient

running = 1;

while running:
  url = raw_input('Input your URL: \n');
  try:
    client = HTTPClient(url);
    client.request('GET')
    print client.get_header_response()
    print client.get_image_url()
    client.load_image()
  except:
    continue

